<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			const s = new Set()
			s.add(6)
			s.add(28)
			s.add(496)
			s.add(8128)
			s.add(33550336)
			var checkPerfectNumber = function(num) {
			    return s.has(num)
			};
			console.log(checkPerfectNumber(6));
		</script>
	</body>
</html>
